<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.classic.system.wordbook.XWordbook"%>
<%@ page import="jt.classic.system.wordbook.XWordbookMain"%>
<%
	response.setHeader("Pragma", "No-cache");//HTTP 1.1 
	response.setHeader("Cache-Control", "no-cache");//HTTP 1.0 
	response.setHeader("Expires", "0");//防止被proxy 

	String context = jt.classic.system.context.ISystemContext
			.getContextPath();

	String serverPath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort();

	XWordbookMain wbmain = XWordbookMain.getInstance();
	List headParamList = wbmain.getWord("jspparameters");
%>
<script>
	var context = "<%=context%>";
	var serverPath = "<%=serverPath%>";
	var IP = "<%=request.getRemoteAddr()%>";

	if(document.all){
	     setTimeout("CollectGarbage()",1000);
	}
</script>

<script language="javascript"
	src="<%=context%>/resources/common/js/hashmap.js"></script>
<link
	href="<%=context %>/site/ui/lib/ligerUI/skins/Aqua/css/ligerui-all.css"
	rel="stylesheet" type="text/css" />
<link href="<%=context %>/site/ui/lib/ligerUI/skins/Gray/css/all.css"
	rel="stylesheet" type="text/css" />
<link href="<%=context %>/site/ui/lib/ligerUI/skins/ligerui-icons.css"
	rel="stylesheet" type="text/css" />
<script src="<%=context %>/site/ui/lib/jquery/jquery-1.5.2.min.js"
	type="text/javascript"></script>
<script src="<%=context %>/site/ui/lib/ligerUI/js/core/base.js"
	type="text/javascript"></script>
<script src="<%=context %>/site/ui/lib/json2.js" type="text/javascript"></script>
<script>
    
    <%
        if(headParamList != null && !headParamList.isEmpty()){
        	for(int i=0;i<headParamList.size();i++){
        		XWordbook wb = (XWordbook)headParamList.get(i);
        		String paramName = StringTool.checkString(wb.getID());
        		String paramValue = StringTool.checkString(wb.getName());
        		if(!paramName.equals("")){
    %>
    var <%=paramName%> = '<%=paramValue%>';
    <%
        	
        		}
        	}	
        }
    %>
</script>

